﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Adi_Game
{

    public class spear
    {
        public Rectangle spearPos;

        public Texture2D spearl,
                 spearr;

        public int spearSide,
                   perFrameTime,
                   frameGap;

        public bool isFired,
                    isHit,
                    shoot,
                    failHit;

        public spear()
        {
            spearSide = -1;
            shoot = false;
            isFired = false;
            isHit = false;
            failHit = false;
            perFrameTime = 0;
            frameGap = 1000;
        }
    }


    public class tribalVariables
    {

        public Rectangle tribalPos;

        public Texture2D[] WalkL,
                           WalkR,
                           RunL,
                           RunR,
                           AngryL,
                           AngryR;

        public Texture2D RunLs,
                         AngryLs,
                         RunRs,
                         AngryRs;

        public int currFramId,
                   run,
                   maxFrame,
                   jumpFlag,
                   stat,
                   hitTimes,
                   score,
                   fall,
                   lives,
                   health,
                   arrows;

        public double prevFrameTime,
                      frameGap,
                      angryTime,
                      angryGap;

        public bool upArrow,
                    leftArrow,
                    rightArrow,
                    jumped,
                    landed,
                    angryFrame,
                    isFall;


        public tribalVariables()
        {
            WalkL = new Texture2D[4];
            WalkR = new Texture2D[4];
            RunL = new Texture2D[14];
            RunR = new Texture2D[14];
            AngryL = new Texture2D[14];
            AngryR = new Texture2D[14];

            maxFrame = 0;
            jumpFlag = 1;
            frameGap = 0.0;
            currFramId = 0;
            prevFrameTime = 0.0;
            angryTime = 0;
            angryGap = 100;
            hitTimes = 0;
            score = 0;
            health = 300;
            run = 1;
            stat = 1;
            fall = 0;
            lives = 3;
            arrows = 20;


            upArrow = false;
            rightArrow = false;
            leftArrow = false;
            jumped = false;
            landed = true;
            angryFrame = false;
            isFall = false;
          
        }

    }
}
